← Back to issue list

Can snapcraft commands default to base in snapcraft.yaml from build subdirectories?

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1986533
Type
issue
State
open
Author
~rpjday
Labels
Created
2022-08-15 12:31:36.327019+00:00
Updated
2022-08-15 12:32:13.223913+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

I can see that if I'm running commands like "snapcraft plugins", if I happen to be at the top of a snap build directory, then the command will use the base specified in the snapcraft.yaml file. However, if I'm in some (non-snap/) subdirectory of that build directory, then the command reverts to simply using the latest supported base. Would it be difficult to extend snapcraft's behaviour to act more like Git, in that no matter where you are in a build directory, the base from the snapcraft.yaml file associated with that build directory will be used? That would be more consistent behaviour.

Evaluation history

No evaluation history available.